from django.shortcuts import render
from rest_framework import generics

from teacher_app.models import Teacher
from teacher_app.serializer import TeachserSerializer

# Create your views here.
class TeacherView(generics.ListAPIView):
    queryset = Teacher.objects.all()
    serializer_class = TeachserSerializer